package com.java.common.constant;

import lombok.Getter;

public class ProductConstant {

    //属性枚举
    public enum AttrEnum{
        ATTR_TYPE_BASE(1,"基本属性"),
        ATTR_TYPE_SALE(0,"销售属性");

        @Getter
        private Integer code;
        @Getter
        private String msg;

        private AttrEnum(Integer code, String msg) {
            this.code = code;
            this.msg = msg;
        }
    }

    public enum SPuStatus{
        CREATE_SPU(0,"新建"),
        UP_SPU(1,"上架"),
        DOWN_SPU(2,"下架");

        @Getter
        private Integer code;

        @Getter
        private String msg;

        SPuStatus(Integer code,String msg){
            this.code = code;
            this.msg = msg;
        }
    }
}
